package com.dinzeer.legendreliclib.client;

import com.dinzeer.legendreliclib.lib.compat.slashblade.render.RenderbusforSlashBlade;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.EntityRenderersEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModList;
import net.minecraftforge.fml.common.Mod;

import static com.dinzeer.legendreliclib.Legendreliclib.MODID;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT,modid = MODID)
public class LRClient {
    @SubscribeEvent
    public static void registerEntityRenderers(EntityRenderersEvent.RegisterRenderers event) {
         if (ModList.get().isLoaded("slashblade")){
             RenderbusforSlashBlade.renderbus(event);
         }
    }
}
